package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketAd;
import com.cskaoyan.bean.yangzihui.NewMarketAd;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author yangzihui
 * @Description
 * @Create 2022-06-26 14:41
 * @Version
 */
public interface AdMapper {
    List<MarketAd> select(@Param("sort") String sort, @Param("order") String order, @Param("name") String name, @Param("content") String content);

    void update(@Param("marketAd") MarketAd marketAd, @Param("date") Date date);

    void delete(MarketAd marketAd);

    void create(@Param("newMarketAd") NewMarketAd newMarketAd, @Param("date") Date date);
}
